#include "IStrategy.h"
#include "IGrid.h"

IStrategy::IStrategy(IGrid* grid)
	: m_grid(grid)
{
}

IStrategy::~IStrategy(void)
{
}

void IStrategy::SetDifficultyLevel(int difficulty)
{
	m_difficultyLevel = difficulty;
}
int IStrategy::GetDifficultyLevel()
{
	return m_difficultyLevel;
}

bool IStrategy::CanBeSelected( CCPoint point, int cellType )
{
	return false;
}

void IStrategy::ApplyRules()
{
}

void IStrategy::ApplyAIMove()
{
}

bool IStrategy::SelectCell( CCPoint point, int cellType )
{
	if (CanBeSelected(point,cellType))
	{
		ApplyCleanRule(point, cellType);
		m_grid->ReplaceCell(point, cellType);
		return true;
	}
	return false;
}